<template>
  <view>
    <view class="topView">
      <view class="container">
        <view class="close" @click="closeDialog">×</view>
        <view class="text">因临时情况或其他不可抗力原因，该地址目前暂不支持配送，您可以更换地址继续登记，为您带来不便敬请谅解!</view>
        <view class="checkBtnBox">
          <view class="btn submit" @click="closeDialog">确认</view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {

      }
    },
    methods: {
      closeDialog() {
        this.$emit('closeDistrictDialog')
      }
    }
  }
</script>

<style lang="scss">
  .topView {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;

    .container {
      position: absolute;
      top: 40%;
      width: 520rpx;
      height: 340rpx;
      background: #fff;
      margin: auto;
      left: 0;
      right: 0;

      .close {
        position: absolute;
        width: 40rpx;
        height: 40rpx;
        top: 4rpx;
        right: 10rpx;
        line-height: 50rpx;
        font-size: 44rpx;
        text-align: center;
      }

      .text {
        text-align: justify;
        font-size: 28rpx;
        line-height: 45rpx;
        margin-top: 80rpx;
        margin: 46rpx 50rpx 20rpx;

      }

      .checkBtnBox {
        margin: 0 48rpx;
        display: flex;
        justify-content: center;
        .btn {
          width: 196rpx;
          height: 34px;
          display: flex;
          align-items: center;
          justify-content: center;
          border: 1px solid #333;
          background: #fff;
          color: #000;

          &.submit {
            color: #fff;
            background: #000;
          }
        }
      }
    }
  }
</style>
